package com.li.senbiao.tuple;

import com.li.senbiao.tuple.Tuple.Tuple2;

public class TestTuple {

	public static void main(String[] args) {
		TestTuple test = new TestTuple();

		Tuple2<Long, String> user = test.getUser();
		
		long id = user._1();
		String name = user._2();

		System.out.println("id = " + id + ", name = " + name);
	}

	private Tuple2<Long, String> getUser() {
		long id = 1L;
		String name = "hello";
		return Tuple.tuple(id, name);
	}
}
